/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.ExaminationPaperRuleBO;
import com.xy.biz.ts.domain.query.ExaminationPaperRuleQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-3-25
 */
public interface ExaminationPaperRuleManager {

	/**
	 * 保存
	 *
	 * @param examinationPaperRuleBO
	 */
	int saveExaminationPaperRule(ExaminationPaperRuleBO examinationPaperRuleBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationPaperRule(Collection<ExaminationPaperRuleBO> collection);

	/**
	 * 更新
	 *
	 * @param examinationPaperRuleBO
	 */
	int updateExaminationPaperRule(ExaminationPaperRuleBO examinationPaperRuleBO);

	/**
	 * 删除
	 *
	 * @param examinationPaperRuleId
	 */
	int deleteExaminationPaperRule(Long examinationPaperRuleId);

	/**
	 * 查找一个
	 *
	 * @param examinationPaperRuleId
	 * @return
	 */
	ExaminationPaperRuleBO getExaminationPaperRule(Long examinationPaperRuleId);

	/**
	 * 查找一个
	 * @return
	 */
	ExaminationPaperRuleBO getExaminationPaperRuleByQuery(ExaminationPaperRuleQuery query);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ExaminationPaperRuleBO> listExaminationPaperRuleById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ExaminationPaperRuleBO> listExaminationPaperRule(ExaminationPaperRuleQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countExaminationPaperRule(ExaminationPaperRuleQuery query);

}
